﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>家居产品质量追溯平台——红星·美凯龙</title>
    <link href="/Content/admin/css/style.css" rel="stylesheet" type="text/css" />
    <script src="/Content/admin/js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="/Scripts/sha1.js" type="text/javascript"></script>
    <script  type="text/javascript">
        $(document).ready(function () {
            if ($.cookie("adminUserName") != undefined && $.cookie("adminUserName") != '') {
                $("#remeardUserName").attr("checked", true);
                $("#txt_userName").val($.cookie("adminUserName"));
            }
            else
                $("#remeardUserName").attr("checked", false);
            $("#btLogin").click(function () {
                if ($("#txt_userName").val() == '' || $("#txt_userPass").val() == '') {
                    alert('请填写用户名和密码');
                    return;
                }
                var post = new Object();
                post.userName = $("#txt_userName").val();
                post.userPass = hex_sha1($("#txt_userPass").val());
                $.post('/PDAInterface/Login', post, function (msg) {
                    alert(msg.Message);
                    if (msg.RetCode >= 0) {
                        if ($("#remeardUserName").attr("checked")) {
                            $.cookie("adminUserName", $("#txt_userName").val());
                        }
                        $.cookie("CurPage", "");
                        location.href = '/Admin/Index';
                    }
                }, 'json');

            });
        });
    </script>
</head>
<body class="loginbody">
<div class="login_top">
    
<div class="login_top_logo"><img src="/Content/admin/images/logo.jpg" /></div>
<div class="login_top_banner">家居产品质量追溯平台综合管理系统</div>
</div>
<div class="login_main">
<div class="login_main_pic"></div>
<div class="login_main_text">
<div class="login_main_adtext">国内最具公信力的家居溯源平台</div>
<div class="login_main_adtext2">一站式解决家居企业防伪溯源综合管理需求<br />
 现在就 <a href="../join.html" class="joinlink">加入</a> 体验更多精彩 </div>
</div>
<div class="login_box">
<div class="login_box_title">综合管理系统用户登录</div>
<input type="text" class="login_userinput" id="txt_userName" />
<input type="password" class="login_passinput" id="txt_userPass" />
<div class="login_box_text"><input type="checkbox" id="remeardUserName"/>记住用户名</div>
<div class="login_box_text">忘记密码？</div>
<div class="login_loginbt" id="btLogin"><span>登录</span></div> <div class="login_loginbt" id="btJoin" onclick="location.href='/Admin/JoinApply'"><span>申请加入</span></div>
</div> 
</div>
    
</body>
</html>
